from rest_framework import routers
from django.urls import path
from patients.views import PatientAPIView, PatientRetrieveAPIView, PatientDestroyAPIView, SavePatientAnswerAPIView

# router = routers.SimpleRouter()
# router.register('patients', PatientAPIView.as_view())
# urlpatterns = router.urls

urlpatterns = [
    path('patients/', PatientAPIView.as_view()),
    path('edit_patients/<int:pk>/', PatientAPIView.as_view()),
    path('patients_info/<int:pk>/', PatientRetrieveAPIView.as_view()),
    path('del_patient/<int:pk>/', PatientDestroyAPIView.as_view()),
    path('save_answer/', SavePatientAnswerAPIView.as_view()),
]
